package org.celery.modules.merchant.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.merchant.entity.MerchantDeskCategory;
import org.celery.modules.merchant.vo.MerchantDeskCategoryVO;

/**
 * 商户桌台类别表.包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-11-07
 */
public class MerchantDeskCategoryWrapper extends BaseEntityWrapper<MerchantDeskCategory, MerchantDeskCategoryVO>  {

    public static MerchantDeskCategoryWrapper build() {
        return new MerchantDeskCategoryWrapper();
    }

	@Override
	public MerchantDeskCategoryVO entityVO(MerchantDeskCategory merchantDeskCategory) {
		MerchantDeskCategoryVO merchantDeskCategoryVO = BeanUtil.copy(merchantDeskCategory, MerchantDeskCategoryVO.class);

		return merchantDeskCategoryVO;
	}

}
